#include <stdio.h>
#include "book2_function.h"
#include <string.h>
#include <ctype.h>

int leapyear();

void main()
{
	//int year = 1000;
	//scanf("%d", &yeartemp);
	//leapyear();
	//printf("leap year = %d\n", yeartemp);

	long length = 0;
	char str;

	while((str = getchar()) != '\n')
	{
		printf("%c", str);
		length++;
		
		printf("c = %c  ascii = %d\n", str, str);
	}
	putchar('\n');
	printf("%d\n", length);
}